public static partial class wasi_unstable
{
    const byte __WASI_ADVICE_NORMAL = 0;
    const byte __WASI_ADVICE_SEQUENTIAL = 1;
    const byte __WASI_ADVICE_RANDOM = 2;
    const byte __WASI_ADVICE_WILLNEED = 3;
    const byte __WASI_ADVICE_DONTNEED = 4;
    const byte __WASI_ADVICE_NOREUSE = 5;
    const uint __WASI_CLOCK_REALTIME = 0;
    const uint __WASI_CLOCK_MONOTONIC = 1;
    const uint __WASI_CLOCK_PROCESS_CPUTIME_ID = 2;
    const uint __WASI_CLOCK_THREAD_CPUTIME_ID = 3;
    const ulong __WASI_DIRCOOKIE_START = 0;
    const ushort __WASI_ESUCCESS = 0;
    const ushort __WASI_E2BIG = 1;
    const ushort __WASI_EACCES = 2;
    const ushort __WASI_EADDRINUSE = 3;
    const ushort __WASI_EADDRNOTAVAIL = 4;
    const ushort __WASI_EAFNOSUPPORT = 5;
    const ushort __WASI_EAGAIN = 6;
    const ushort __WASI_EALREADY = 7;
    const ushort __WASI_EBADF = 8;
    const ushort __WASI_EBADMSG = 9;
    const ushort __WASI_EBUSY = 10;
    const ushort __WASI_ECANCELED = 11;
    const ushort __WASI_ECHILD = 12;
    const ushort __WASI_ECONNABORTED = 13;
    const ushort __WASI_ECONNREFUSED = 14;
    const ushort __WASI_ECONNRESET = 15;
    const ushort __WASI_EDEADLK = 16;
    const ushort __WASI_EDESTADDRREQ = 17;
    const ushort __WASI_EDOM = 18;
    const ushort __WASI_EDQUOT = 19;
    const ushort __WASI_EEXIST = 20;
    const ushort __WASI_EFAULT = 21;
    const ushort __WASI_EFBIG = 22;
    const ushort __WASI_EHOSTUNREACH = 23;
    const ushort __WASI_EIDRM = 24;
    const ushort __WASI_EILSEQ = 25;
    const ushort __WASI_EINPROGRESS = 26;
    const ushort __WASI_EINTR = 27;
    const ushort __WASI_EINVAL = 28;
    const ushort __WASI_EIO = 29;
    const ushort __WASI_EISCONN = 30;
    const ushort __WASI_EISDIR = 31;
    const ushort __WASI_ELOOP = 32;
    const ushort __WASI_EMFILE = 33;
    const ushort __WASI_EMLINK = 34;
    const ushort __WASI_EMSGSIZE = 35;
    const ushort __WASI_EMULTIHOP = 36;
    const ushort __WASI_ENAMETOOLONG = 37;
    const ushort __WASI_ENETDOWN = 38;
    const ushort __WASI_ENETRESET = 39;
    const ushort __WASI_ENETUNREACH = 40;
    const ushort __WASI_ENFILE = 41;
    const ushort __WASI_ENOBUFS = 42;
    const ushort __WASI_ENODEV = 43;
    const ushort __WASI_ENOENT = 44;
    const ushort __WASI_ENOEXEC = 45;
    const ushort __WASI_ENOLCK = 46;
    const ushort __WASI_ENOLINK = 47;
    const ushort __WASI_ENOMEM = 48;
    const ushort __WASI_ENOMSG = 49;
    const ushort __WASI_ENOPROTOOPT = 50;
    const ushort __WASI_ENOSPC = 51;
    const ushort __WASI_ENOSYS = 52;
    const ushort __WASI_ENOTCONN = 53;
    const ushort __WASI_ENOTDIR = 54;
    const ushort __WASI_ENOTEMPTY = 55;
    const ushort __WASI_ENOTRECOVERABLE = 56;
    const ushort __WASI_ENOTSOCK = 57;
    const ushort __WASI_ENOTSUP = 58;
    const ushort __WASI_ENOTTY = 59;
    const ushort __WASI_ENXIO = 60;
    const ushort __WASI_EOVERFLOW = 61;
    const ushort __WASI_EOWNERDEAD = 62;
    const ushort __WASI_EPERM = 63;
    const ushort __WASI_EPIPE = 64;
    const ushort __WASI_EPROTO = 65;
    const ushort __WASI_EPROTONOSUPPORT = 66;
    const ushort __WASI_EPROTOTYPE = 67;
    const ushort __WASI_ERANGE = 68;
    const ushort __WASI_EROFS = 69;
    const ushort __WASI_ESPIPE = 70;
    const ushort __WASI_ESRCH = 71;
    const ushort __WASI_ESTALE = 72;
    const ushort __WASI_ETIMEDOUT = 73;
    const ushort __WASI_ETXTBSY = 74;
    const ushort __WASI_EXDEV = 75;
    const ushort __WASI_ENOTCAPABLE = 76;
    const ushort __WASI_EVENT_FD_READWRITE_HANGUP = 0x0001;
    const byte __WASI_EVENTTYPE_CLOCK = 0;
    const byte __WASI_EVENTTYPE_FD_READ = 1;
    const byte __WASI_EVENTTYPE_FD_WRITE = 2;
    const ushort __WASI_FDFLAG_APPEND = 0x0001;
    const ushort __WASI_FDFLAG_DSYNC = 0x0002;
    const ushort __WASI_FDFLAG_NONBLOCK = 0x0004;
    const ushort __WASI_FDFLAG_RSYNC = 0x0008;
    const ushort __WASI_FDFLAG_SYNC = 0x0010;
    const byte __WASI_FILETYPE_UNKNOWN = 0;
    const byte __WASI_FILETYPE_BLOCK_DEVICE = 1;
    const byte __WASI_FILETYPE_CHARACTER_DEVICE = 2;
    const byte __WASI_FILETYPE_DIRECTORY = 3;
    const byte __WASI_FILETYPE_REGULAR_FILE = 4;
    const byte __WASI_FILETYPE_SOCKET_DGRAM = 5;
    const byte __WASI_FILETYPE_SOCKET_STREAM = 6;
    const byte __WASI_FILETYPE_SYMBOLIC_LINK = 7;
    const ushort __WASI_FILESTAT_SET_ATIM = 0x0001;
    const ushort __WASI_FILESTAT_SET_ATIM_NOW = 0x0002;
    const ushort __WASI_FILESTAT_SET_MTIM = 0x0004;
    const ushort __WASI_FILESTAT_SET_MTIM_NOW = 0x0008;
    const uint __WASI_LOOKUP_SYMLINK_FOLLOW = 0x00000001;
    const ushort __WASI_O_CREAT = 0x0001;
    const ushort __WASI_O_DIRECTORY = 0x0002;
    const ushort __WASI_O_EXCL = 0x0004;
    const ushort __WASI_O_TRUNC = 0x0008;
    const ushort __WASI_SOCK_RECV_PEEK = 0x0001;
    const ushort __WASI_SOCK_RECV_WAITALL = 0x0002;
    const ulong __WASI_RIGHT_FD_DATASYNC = 0x0000000000000001;
    const ulong __WASI_RIGHT_FD_READ = 0x0000000000000002;
    const ulong __WASI_RIGHT_FD_SEEK = 0x0000000000000004;
    const ulong __WASI_RIGHT_FD_FDSTAT_SET_FLAGS = 0x0000000000000008;
    const ulong __WASI_RIGHT_FD_SYNC = 0x0000000000000010;
    const ulong __WASI_RIGHT_FD_TELL = 0x0000000000000020;
    const ulong __WASI_RIGHT_FD_WRITE = 0x0000000000000040;
    const ulong __WASI_RIGHT_FD_ADVISE = 0x0000000000000080;
    const ulong __WASI_RIGHT_FD_ALLOCATE = 0x0000000000000100;
    const ulong __WASI_RIGHT_PATH_CREATE_DIRECTORY = 0x0000000000000200;
    const ulong __WASI_RIGHT_PATH_CREATE_FILE = 0x0000000000000400;
    const ulong __WASI_RIGHT_PATH_LINK_SOURCE = 0x0000000000000800;
    const ulong __WASI_RIGHT_PATH_LINK_TARGET = 0x0000000000001000;
    const ulong __WASI_RIGHT_PATH_OPEN = 0x0000000000002000;
    const ulong __WASI_RIGHT_FD_READDIR = 0x0000000000004000;
    const ulong __WASI_RIGHT_PATH_READLINK = 0x0000000000008000;
    const ulong __WASI_RIGHT_PATH_RENAME_SOURCE = 0x0000000000010000;
    const ulong __WASI_RIGHT_PATH_RENAME_TARGET = 0x0000000000020000;
    const ulong __WASI_RIGHT_PATH_FILESTAT_GET = 0x0000000000040000;
    const ulong __WASI_RIGHT_PATH_FILESTAT_SET_SIZE = 0x0000000000080000;
    const ulong __WASI_RIGHT_PATH_FILESTAT_SET_TIMES = 0x0000000000100000;
    const ulong __WASI_RIGHT_FD_FILESTAT_GET = 0x0000000000200000;
    const ulong __WASI_RIGHT_FD_FILESTAT_SET_SIZE = 0x0000000000400000;
    const ulong __WASI_RIGHT_FD_FILESTAT_SET_TIMES = 0x0000000000800000;
    const ulong __WASI_RIGHT_PATH_SYMLINK = 0x0000000001000000;
    const ulong __WASI_RIGHT_PATH_REMOVE_DIRECTORY = 0x0000000002000000;
    const ulong __WASI_RIGHT_PATH_UNLINK_FILE = 0x0000000004000000;
    const ulong __WASI_RIGHT_POLL_FD_READWRITE = 0x0000000008000000;
    const ulong __WASI_RIGHT_SOCK_SHUTDOWN = 0x0000000010000000;
    const ushort __WASI_SOCK_RECV_DATA_TRUNCATED = 0x0001;
    const byte __WASI_SHUT_RD = 0x01;
    const byte __WASI_SHUT_WR = 0x02;
    const byte __WASI_SIGHUP = 1;
    const byte __WASI_SIGINT = 2;
    const byte __WASI_SIGQUIT = 3;
    const byte __WASI_SIGILL = 4;
    const byte __WASI_SIGTRAP = 5;
    const byte __WASI_SIGABRT = 6;
    const byte __WASI_SIGBUS = 7;
    const byte __WASI_SIGFPE = 8;
    const byte __WASI_SIGKILL = 9;
    const byte __WASI_SIGUSR1 = 10;
    const byte __WASI_SIGSEGV = 11;
    const byte __WASI_SIGUSR2 = 12;
    const byte __WASI_SIGPIPE = 13;
    const byte __WASI_SIGALRM = 14;
    const byte __WASI_SIGTERM = 15;
    const byte __WASI_SIGCHLD = 16;
    const byte __WASI_SIGCONT = 17;
    const byte __WASI_SIGSTOP = 18;
    const byte __WASI_SIGTSTP = 19;
    const byte __WASI_SIGTTIN = 20;
    const byte __WASI_SIGTTOU = 21;
    const byte __WASI_SIGURG = 22;
    const byte __WASI_SIGXCPU = 23;
    const byte __WASI_SIGXFSZ = 24;
    const byte __WASI_SIGVTALRM = 25;
    const byte __WASI_SIGPROF = 26;
    const byte __WASI_SIGWINCH = 27;
    const byte __WASI_SIGPOLL = 28;
    const byte __WASI_SIGPWR = 29;
    const byte __WASI_SIGSYS = 30;
    const ushort __WASI_SUBSCRIPTION_CLOCK_ABSTIME = 0x0001;
    const byte __WASI_WHENCE_CUR = 0;
    const byte __WASI_WHENCE_END = 1;
    const byte __WASI_WHENCE_SET = 2;
    const byte __WASI_PREOPENTYPE_DIR = 0;
}
